﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using Orpheus.Analyzer;

namespace Orpheus.Console
{
    class Program
    {
        static void Main(string[] args)
        {
            var filePath = //@"d:\CorporateShare\Audio\ilja_chert_-_chetire_sezona_(zvukoff.ru).mp3";
                // @"D:\Music\Не слушал, не знаю\Creed - My Sacrifice.mp3";
                @"D:\test_150.wav";
            TrackParsingService service = new TrackParsingService();
            var info = service.ParseTrack(filePath);

            //foreach (var timeInterval in info.DominantScore.Intervals)
            //{
            //    System.Console.WriteLine(NoteNamingUtils.GetNameOfNoteGroup(info.DominantScore.GetValue(timeInterval.Start)));
            //}

            System.Console.WriteLine("Tempo=" + info.Tempo.GetValue(new TimeSpan(0)));
            System.Console.ReadKey();
        }
    }
}
